package be.destin.adp;

import java.util.ArrayList;

public class AdpTransformation {
	ArrayList<AdpRule> rules = new ArrayList<AdpRule>(); // Alternatives to be tested at a given point
	AdpWINdata fallback = AdpWINdata.WIN_copy; // Copy one character and retry all rules

	/**
	 * @return the rules
	 */
	public ArrayList<AdpRule> getRules() {
		return rules;
	}
	/**
	 * @param rules the rules to add
	 */
	public void addRule(AdpRule rule) {
		this.rules.add(rule);
		rule.setTransformation(this);
	}
	/**
	 * @return the win
	 */
	public AdpWINdata getFallback() {
		return fallback;
	}
	/**
	 * @param win the win to set
	 */
	public void setFallback(AdpWINdata win) {
		this.fallback = win;
	}
}
